package com.xuetang9.cloudhouse.common.service;

import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author 老九.大师兄
 * @version 1.0
 * @desc
 * @date 2020/6/2-17:50
 * @copyright &copy; xuetang9
 * @address 成都市西部国际金融中心2栋2201
 */
public interface BasicService<T,MT extends Mapper<T>> {
    List<T> queryAll();
    List<T> queryByKey(T data);
    boolean save(T data);
    List<Integer> batchSave(List<T> datas);
    boolean modify(T data);
    boolean remove(Long id);
    int deleteByIds(Class<T> clazz,List<Object> ids);
}
